package com.insideClass.event;

public class GeehouseController {
    public static void main(String[] args) {
        GreenHouseControls gc=new GreenHouseControls();
        gc.addEvent(gc.new Bell(900,900));
        Event[] eventlist={
                gc.new ThermostatNight(0,10),
                gc.new LightOn(200,300),
                gc.new LightOff(400,500),
                gc.new WaterOn(600,700),
                gc.new WaterOff(800,900),
                gc.new ThermostatDay(1400,1500)
        };
        gc.addEvent(gc.new Restart(2000,2500,eventlist));
        if(args.length==1){
            gc.addEvent(new GreenHouseControls.Terminate(new Integer(args[0]),new Integer(args[1])));
        }
        gc.run();
    }
}
